# coding: utf-8
# 18-11-15 下午5:47

from rest_framework.test import APITestCase


from rpc_usercenter.rpc_clients.rpc_client import rpc_client


class RPCTestCase(APITestCase):
    '''
    rpc test
    '''

    def setUp(self):
        # login_username = 'root'
        pass

    def test_add(self):
        res = rpc_client.rpc_add(a=1, b=100)

        print('======= test_add =======')
        print(res)
        print()

    def test_rpc_get_customer(self):
        res = rpc_client.rpc_get_customer(user_id=1)

        print('======= test_rpc_get_customer =======')
        print(res)
        print()

    def tearDown(self):
        super(RPCTestCase, self).tearDown()
